#include <stdio.h>
#include <stdlib.h>

int main()
{
	int num = 0;
	printf("please input:");
	scanf("%d", &num);
	switch (num)
	{
		case 1:
			printf("MON\n");
			break;
		case 2:
			printf("TUE\n");
			break;
		case 3:
			printf("WED\n");
			break;
		case 4:
			printf("THU\n");
			break;
		case 5:
			printf("FRI\n");
			break;
		case 6:
			printf("SAT\n");
			break;
		case 7:
			printf("SUN\n");
			break;
		default:
			printf("Error\n");
			break;
	}
	return 0;
}